const { defineConfig } = require("@vue/cli-service");
module.exports = defineConfig({
  transpileDependencies: true,
  lintOnSave: false,
  pages:{
    index:{
      entry:'src/main.js',
      template:'public/index.html',
      filename:'index.html',
      title:'首页'
    },
    login:{
      entry:'src/components/login/main.js',
      template:'public/login.html',
      filename:'login.html',
      title:'登录'
    }
  },
  devServer: {
    proxy: {
      '/api': {
        target: 'http://localhost:9000/api',
        changeOrigin: true,
        ws:true,
        pathRewrite: {'^/api': ''}
      },
      
    }
  }

});
